home *** CD-ROM | disk | FTP | other *** search
/ 3D Images / 3D Images.iso / programs / amiga / rayshade / urt / include / makefile.src < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-12  |  1.0 KB  |  65 lines

  1. #
  2. # Makefile for include subdirectory.
  3. # Only thing to do here is install the .h files somewhere if INC_DEST is
  4. # set.
  5. #
  6.  
  7. # default action builds rle_config.h
  8. default: rle_config.h
  9.  
  10. #alldefs CONFIGDEFS
  11. CONFIGDEFS =
  12.  
  13. #ifdef INC_DEST
  14. #set DEST INC_DEST
  15. DEST =
  16. #endif
  17.  
  18. HDRS = \
  19.     exit_status.h \
  20.     pyramid.h \
  21.     rle.h \
  22.     rle_code.h \
  23.     rle_put.h \
  24.     rle_raw.h \
  25.     rle_config.h
  26.  
  27. post-config: rle_config.h
  28.  
  29. rle_config.h: ${CONFIG} makefile
  30.     sh make-config-h ${CONFIGDEFS} >rle_config.h
  31.     cat rle_config.tlr >>rle_config.h
  32.  
  33. install: $(HDRS)
  34.     @sh -c "if test 'x$(DEST)' != x ; then \
  35.         if test 'x$(HDRS)' != x ; then eval \
  36.             'for hdr in $?; do \
  37.                 echo cp \$$hdr $(DEST)/\$$hdr ; \
  38.                 cp \$$hdr $(DEST)/\$$hdr; \
  39.             done' ; \
  40.         else \
  41.             true ; \
  42.         fi ; \
  43.     else \
  44.         true ; \
  45.     fi"
  46.     touch install
  47.  
  48. # Nothing to clean
  49. clean:
  50.     rm rle_config.h
  51.  
  52. # Remove installed headers
  53. pristine:
  54.     @-if test "x$(DEST)" != x ; then eval \
  55.         'for hdr in $(HDRS); do \
  56.             echo rm -f $(DEST)/$$hdr; \
  57.             rm -f $(DEST)/$$hdr; \
  58.         done' ; \
  59.     else \
  60.         true ; \
  61.     fi
  62.     rm -f install
  63.  
  64.